><

Checking syntax



In Source view, you can check to make sure that your Web pages contain only valid and error-free code. The built-in syntax checker parses your HTML code against the coding rules stored in Web Settings and highlights code elements presumed faulty.

When you select specific HTML code and launch syntax checking, you can pinpoint which tags and attributes are not supported by a given set of browsers or are specific to Adobe GoLive. When you choose a browser set from the browser compatibility menu, an incompatibility list appears in the error log, detailing potential problems. The sets available in this menu are assembled when you set Source preferences. For more information, see Setting Source preferences.


Syntax warning in Source view

To check syntax:

1 In the Source view toolbar, click the Display Errors button () to check for syntax errors. The counter next to the button shows the number of syntax errors in the page.

2 Click the Display Warnings button () to check for syntax warnings. The counter next to the button shows the number of syntax warnings in the page.

3 Click the Check Syntax button () in the Source toolbar. The source code is verified and the syntax checker highlights the first code element presumed faulty. (If nothing is highlighted, your HTML code is correct.)

Check the error log above the main window area to learn more about these errors. The triangle control () opens and closes the error log section of the Source Editor window. It opens automatically when the syntax checker detects faulty HTML code.

4 Correct each error, and then click the Check Syntax button again to make sure that all errors have been found.


Working in HTML > Editing HTML code in Source view > Checking syntax